package cn.bdqn.pn.service.schedule.impl;

import cn.bdqn.pn.pojo.schedule.Commoditysession;
import cn.bdqn.pn.reposity.schedule.CommoditysessionReposity;
import cn.bdqn.pn.service.schedule.CommoditysessionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("commoditysessionService")
public class CommoditysessionServiceImpl implements CommoditysessionService {
    @Autowired
    CommoditysessionReposity commoditysessionReposity;
    @Override
    public Commoditysession addCommoditysession(Commoditysession commoditysession) {
        Commoditysession addCommoditysession= commoditysessionReposity.save(commoditysession);
       return  addCommoditysession;
    }

    @Override
    public Commoditysession getById(Integer id) {
        return commoditysessionReposity.findOne(id);
    }


}
